/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import java.util.concurrent.ConcurrentHashMap;
import java.util.Map;

/**
 *
 * @author evan
 */
public class ConcurrentLinkedQueuetest {

    public static void main(String[] args) {
        ConcurrentHashMap<String, String> chm = new ConcurrentHashMap<String, String>();
        chm.put("1", "1");
        chm.put("2", "2");
        chm.put("3", "3");
        for (Map.Entry<String, String> e : chm.entrySet()) {
            String a = e.getKey();
            String b = e.getValue();
            System.out.println(a + " " + b);
            chm.remove(a);
        }
    }
}
